package com.itheima.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * cd
 *
 * @Author 小思
 * @Description //TODO
 * @Date cd$ $
 * @Param $
 * @return $
 * rest模式
 **/


@RestController
@RequestMapping("/mapping")
public class BookController {

    @RequestMapping
    public String getBylt() {
        System.out.println("springboot is running 2");
        return "springboot is running ~~ 2";
    }


}
//@RestController
//@RequestMapping("/books")


/*
public class BookController {

    @RequestMapping
    public String getBult() {
        System.out.println("springboot is running");
        return "springboot is running";
    }
}
*/

